{% load static %}
<div class="col-md-3 left_col">
    <div class="left_col scroll-view">


        <div class="navbar nav_title" style="border: 0;">
            <a href="{% url 'index' %}" class="site_title"><i class="fa fa-paw"></i> <span>welcome!</span></a>
        </div>
        <div class="clearfix"></div>

        <div class="profile clearfix">
            <div class="profile_pic">
                <img src="{% static 'images/img.jpg' %}" alt="..." class="img-circle profile_img">
            </div>
            <div class="profile_info">
                <span>Welcome,</span>
                <h2 id="username">{{ request.user }}</h2>
            </div>
        </div>
        <br/>
        <div id="sidebar-menu" class="main_menu_side hidden-print main_menu">
            <div class="menu_section">
                <ul class="nav side-menu">

                    
                     <li><a><i class="fa fa-home"></i> 问卷调查 <span class="fa fa-chevron-down"></span></a>
                        <ul class="nav child_menu">
                            <li><a href="/pcpages/pcpages/no1/">脑出血患者问卷</a></li>
                            <li><a href="/pcpages/pcpages/no2/">健康人群问卷</a></li>
                            <li><a href="/pcpages/pcpages/no4/">健康人群问卷(体检中心)</a></li>
                            <li><a href="/pcpages/pcpages/no5/">脑出血患者问卷(医院)</a></li>
                            <li><a href="/pcpages/pcpages/no6/">随访患者问卷</a></li>

                        </ul>
                    </li>

                    <li><a><i class="fa fa-laptop"></i> 问卷草稿箱 <span class="fa fa-chevron-down"></span></a>
                        <ul class="nav child_menu">
                            <li><a href="/pcpages/pcpages_cgx/no1/">脑出血患者问卷</a></li>
                            <li><a href="/pcpages/pcpages_cgx/no2/">健康人群问卷</a></li>
                            <li><a href="/pcpages/pcpages_cgx/no4/">健康人群问卷(体检中心)</a></li>
                            <li><a href="/pcpages/pcpages_cgx/no5/">脑出血患者问卷(医院)</a></li>
                            <li><a href="/pcpages/pcpages_cgx/no6/">随访患者问卷</a></li>
                           
                       </ul>
                    </li>

                    {% if perms.wenjuan.view_HunanPending or perms.wenjuan.view_HubeiPending or perms.wenjuan.view_JiangxiPending or perms.wenjuan.view_HenanPending or perms.wenjuan.view_AnhuiPending %}
                    <li><a><i class="fa fa-bell"></i> 待提交问卷<span class="fa fa-chevron-down"></span></a>
                        <ul class="nav child_menu">
                            {% if perms.wenjuan.view_HunanPending %}
                                <li><a href="/pending/pending_index/hunan/">湖南省</a></li>
                            {% endif %}

                            {% if perms.wenjuan.view_HubeiPending %}
                                <li><a href="/pending/pending_index/hubei/">湖北省</a></li>
                            {% endif %}

                             {% if perms.wenjuan.view_JiangxiPending %}
                                <li><a href="/pending/pending_index/jiangxi/">江西省</a></li>
                            {% endif %}

                            {% if perms.wenjuan.view_HenanPending %}
                                <li><a href="/pending/pending_index/henan/">河南省</a></li>
                            {% endif %}

                            {% if perms.wenjuan.view_AnhuiPending %}
                                <li><a href="/pending/pending_index/anhui/">安徽省</a></li>
                            {% endif %}
                        </ul>
                    </li>
                    {% endif %}

                    {% if perms.wenjuan.view_HunanReview or perms.wenjuan.view_HubeiReview or perms.wenjuan.view_JiangxiReview or perms.wenjuan.view_HenanReview or perms.wenjuan.view_AnhuiReview %}
                      <li><a><i class="fa fa-check-square-o"></i> 问卷审核 <span class="fa fa-chevron-down"></span></a>
                        <ul class="nav child_menu">
                            {% if perms.wenjuan.view_HunanReview %}
                                <li><a href="/review/review_index/hunan/">湖南省</a></li>
                            {% endif %}

                            {% if  perms.wenjuan.view_HubeiReview %}
                                <li><a href="/review/review_index/hubei/">湖北省</a></li>
                            {% endif %}

                            {% if  perms.wenjuan.view_JiangxiReview %}
                                <li><a href="/review/review_index/jiangxi/">江西省</a></li>
                            {% endif %}

                            {% if  perms.wenjuan.view_HenanReview %}
                                <li><a href="/review/review_index/henan/">河南省</a></li>
                            {% endif %}

                            {% if  perms.wenjuan.view_AnhuiReview %}
                                <li><a href="/review/review_index/anhui/">安徽省</a></li>
                            {% endif %}
                        </ul>
                    </li>
                    {% endif %}
          

                {% if perms.wenjuan.view_HunanWenjuan or perms.wenjuan.view_HubeiWenjuan or perms.wenjuan.view_JiangxiWenjuan or perms.wenjuan.view_HenanWenjuan or perms.wenjuan.view_AnhuiWenjuan %}
                 <li><a><i class="fa fa-history"></i> 草稿箱记录 <span class="fa fa-chevron-down"></span></a>
                        <ul class="nav child_menu">
                            {% if perms.wenjuan.view_HunanWenjuan %}
                                <li><a href="/wenjuancgx/wenjuancgx_index/hunan/">湖南省</a></li>
                            {% endif %}

                            {% if perms.wenjuan.view_HubeiWenjuan %}
                                <li><a href="/wenjuancgx/wenjuancgx_index/hubei/">湖北省</a></li>
                            {% endif %}

                             {% if perms.wenjuan.view_JiangxiWenjuan %}
                                <li><a href="/wenjuancgx/wenjuancgx_index/jiangxi/">江西省</a></li>
                            {% endif %}


                            {% if perms.wenjuan.view_HenanWenjuan %}
                                <li><a href="/wenjuancgx/wenjuancgx_index/henan/">河南省</a></li>
                            {% endif %}


                            {% if perms.wenjuan.view_AnhuiWenjuan %}
                                <li><a href="/wenjuancgx/wenjuancgx_index/anhui/">安徽省</a></li>
                            {% endif %}



                        </ul>
                    </li>
                {% endif %}

                {% if perms.wenjuan.view_HunanWenjuan or perms.wenjuan.view_HubeiWenjuan or perms.wenjuan.view_JiangxiWenjuan or perms.wenjuan.view_HenanWenjuan or perms.wenjuan.view_AnhuiWenjuan %}
                     <li><a><i class="fa fa-history"></i> 问卷记录 <span class="fa fa-chevron-down"></span></a>
                        <ul class="nav child_menu">
                            {% if perms.wenjuan.view_HunanWenjuan %}
                                <li><a href="/wenjuan/wenjuan_index/hunan/">湖南省</a></li>
                            {% endif %}

                            {% if perms.wenjuan.view_HubeiWenjuan %}
                                <li><a href="/wenjuan/wenjuan_index/hubei/">湖北省</a></li>
                            {% endif %}

                             {% if perms.wenjuan.view_JiangxiWenjuan %}
                                <li><a href="/wenjuan/wenjuan_index/jiangxi/">江西省</a></li>
                            {% endif %}

                            {% if perms.wenjuan.view_HenanWenjuan %}
                                <li><a href="/wenjuan/wenjuan_index/henan/">河南省</a></li>
                            {% endif %}

                            {% if perms.wenjuan.view_AnhuiWenjuan %}
                                <li><a href="/wenjuan/wenjuan_index/anhui/">安徽省</a></li>
                            {% endif %}
                        </ul>
                    </li>

                 {% endif %}

                 {% if perms.userauth.view_user  or perms.userauth.view_usergroup or perms.userauth.view_loginrecord or perms.userauth.view_downloadhistory %}
                    <li><a><i class="fa fa-gears"></i> 用户管理 <span class="fa fa-chevron-down"></span></a>
                        <ul class="nav child_menu">
                            {% if perms.userauth.view_user %}
                                <li><a href="{% url 'user_list' %}">用户信息</a></li>
                            {% endif %}

                            {% if perms.userauth.view_usergroup %}
                                <li><a href="{% url 'user_group_list' %}">用户组信息</a></li>
                            {% endif %}

                            {% if perms.userauth.view_loginrecord %}
                                <li><a href="{% url 'user_audit' %}">用户登录信息</a></li>
                            {% endif %}
                            
                            {% if perms.userauth.view_downloadhistory %}
                                <li><a href="{% url 'user_download_history' %}">问卷数据下载记录</a></li>
                            {% endif %}
                            
                        </ul>
                    </li>
                    {% endif %}

                    {% if perms.wenjuan.view_wenjuanresult %}
                    <!-- 脑出血图表统计 -->
                    <li><a><i class="fa fa-history"></i> 脑出血图表统计 <span class="fa fa-chevron-down"></span></a>
                        <ul class="nav child_menu">

                                {#<li><a href="/wenjuanresult/naochuxue_result/">问卷结果可视化</a></li>#}

                                <li><a href="/wenjuanresult/totalstatistics/">脑出血问卷数据分析</a></li>

                                <li><a href="{% url 'wenjuanNum_total_statistics' %}">脑出血问卷数量统计</a></li>

                                {#<li><a href="/wenjuanresult/countrate/">率的计算</a></li>#}

                        </ul>
                    </li>
                   {% endif %}

                    {% if perms.wenjuan.view_wenjuanresult %}
                    <!-- 脑出血资源样本库 -->
                    <li><a href="/suifang/resource_database/"><i class="fa fa-database"></i> 生物资源样本库 </a></li>
                    {% endif %}

               
                   
                </ul>
               
            </div>
        </div>
    </div>
</div>